﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using XZTZ.UMP.Public.Models.Bid;
using XZTZ.UMP.WEB.Data;

namespace XZTZ.UMP.WEB.Pages.Bid.ProjectInfo
{
    public class IndexModel : PageModel
    {
        private readonly XZTZ.UMP.WEB.Data.ApplicationDbContext _context;

        public IndexModel(XZTZ.UMP.WEB.Data.ApplicationDbContext context)
        {
            _context = context;
        }

        public IList<XZTZ.UMP.Public.Models.Bid.ProjectInfo> ProjectInfo { get;set; }

        public async Task OnGetAsync()
        {
            ProjectInfo = await _context.ProjectInfo.ToListAsync();
        }
    }
}
